package cn.itcast.nems.manager.support;

/**
 * author: yong.li
 * create: 2023-08-15 11:25:10
 **/
public class ApprovalMessageHolder {
    private static final ThreadLocal<ApprovalMessageInfo> holder = new ThreadLocal<>();


    public static void set(ApprovalMessageInfo approvalMessageInfo) {
        holder.set(approvalMessageInfo);
    }

    public static ApprovalMessageInfo get() {
        return holder.get();
    }

    public static void clear() {
        holder.remove();
    }
}
